﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000451 RID: 1105
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterChessRogueAeonRoomScRsp : IMessage<EnterChessRogueAeonRoomScRsp>, IMessage, IEquatable<EnterChessRogueAeonRoomScRsp>, IDeepCloneable<EnterChessRogueAeonRoomScRsp>, IBufferMessage
	{
		// Token: 0x17000E31 RID: 3633
		// (get) Token: 0x060031A6 RID: 12710 RVA: 0x000885BB File Offset: 0x000867BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterChessRogueAeonRoomScRsp> Parser
		{
			get
			{
				return EnterChessRogueAeonRoomScRsp._parser;
			}
		}

		// Token: 0x17000E32 RID: 3634
		// (get) Token: 0x060031A7 RID: 12711 RVA: 0x000885C2 File Offset: 0x000867C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterChessRogueAeonRoomScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E33 RID: 3635
		// (get) Token: 0x060031A8 RID: 12712 RVA: 0x000885D4 File Offset: 0x000867D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterChessRogueAeonRoomScRsp.Descriptor;
			}
		}

		// Token: 0x060031A9 RID: 12713 RVA: 0x000885DB File Offset: 0x000867DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterChessRogueAeonRoomScRsp()
		{
		}

		// Token: 0x060031AA RID: 12714 RVA: 0x000885E4 File Offset: 0x000867E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterChessRogueAeonRoomScRsp(EnterChessRogueAeonRoomScRsp other) : this()
		{
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060031AB RID: 12715 RVA: 0x00088630 File Offset: 0x00086830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterChessRogueAeonRoomScRsp Clone()
		{
			return new EnterChessRogueAeonRoomScRsp(this);
		}

		// Token: 0x17000E34 RID: 3636
		// (get) Token: 0x060031AC RID: 12716 RVA: 0x00088638 File Offset: 0x00086838
		// (set) Token: 0x060031AD RID: 12717 RVA: 0x00088640 File Offset: 0x00086840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x17000E35 RID: 3637
		// (get) Token: 0x060031AE RID: 12718 RVA: 0x00088649 File Offset: 0x00086849
		// (set) Token: 0x060031AF RID: 12719 RVA: 0x00088651 File Offset: 0x00086851
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060031B0 RID: 12720 RVA: 0x0008865A File Offset: 0x0008685A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterChessRogueAeonRoomScRsp);
		}

		// Token: 0x060031B1 RID: 12721 RVA: 0x00088668 File Offset: 0x00086868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterChessRogueAeonRoomScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.StageInfo, other.StageInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060031B2 RID: 12722 RVA: 0x000886B8 File Offset: 0x000868B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060031B3 RID: 12723 RVA: 0x0008870D File Offset: 0x0008690D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060031B4 RID: 12724 RVA: 0x00088715 File Offset: 0x00086915
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060031B5 RID: 12725 RVA: 0x00088720 File Offset: 0x00086920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.StageInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060031B6 RID: 12726 RVA: 0x0008877C File Offset: 0x0008697C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060031B7 RID: 12727 RVA: 0x000887D4 File Offset: 0x000869D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterChessRogueAeonRoomScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChessRogueInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060031B8 RID: 12728 RVA: 0x0008883C File Offset: 0x00086A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060031B9 RID: 12729 RVA: 0x00088848 File Offset: 0x00086A48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChessRogueInfo();
						}
						input.ReadMessage(this.StageInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001378 RID: 4984
		private static readonly MessageParser<EnterChessRogueAeonRoomScRsp> _parser = new MessageParser<EnterChessRogueAeonRoomScRsp>(() => new EnterChessRogueAeonRoomScRsp());

		// Token: 0x04001379 RID: 4985
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400137A RID: 4986
		public const int StageInfoFieldNumber = 7;

		// Token: 0x0400137B RID: 4987
		private ChessRogueInfo stageInfo_;

		// Token: 0x0400137C RID: 4988
		public const int RetcodeFieldNumber = 3;

		// Token: 0x0400137D RID: 4989
		private uint retcode_;
	}
}
